var app =angular.module('myApp');
app.controller('f-shangpin',["$css","$http","$scope","$rootScope",function ($css,$http,$scope,$rootScope) {
    $css.add("./collect/css/shangpin.css");
    // console.log($rootScope.Data);
    // $scope.data = $rootScope.Data;
    //$scope.data = JSON.parse(localStorage.getItem('collectData'));
    // localStorage.setItem('collectData',JSON.stringify($rootScope.Data))
    // localStorage.setItem('sameData',JSON.stringify($rootScope.sameData))
    // $scope.data = JSON.parse(localStorage.getItem('collectData'));
    // $scope.data.pop();
    // console.log($scope.data);
    // $rootScope.bianji = $scope.data;
    // $scope.time1 = new Date();
    // $scope.time2 = $scope.time1.getTime();
    // console.log(localStorage.getItem('collectData'));
    // console.log($scope.getData);
    // $scope.time1.setHours($scope.time1.getHours() - 8);
    // localStorage.clear('collectData');
    // console.log($rootScope.msgData);
    $scope.data = JSON.parse(localStorage.getItem('shanping'));
    console.log($scope.data);
    $scope.count = parseInt($scope.data[0].count);
    //console.log($scope.count);
    // console.log($scope.data);
}])
